package m1.server;

import m2.Composant;
import m2.port.PortFourni;
import m2.port.PortRequis;

public class Server extends Composant {
	
	ServeurConfig serverConfig;
	
	public Server(){
		super("Server", null);
		addPortFournis(new PortFourni("Server.portFourni"));
		addPortRequis(new PortRequis("Server.portRequis"));
	}
	
	@Override
	public void update(Object o, Object arg) {
		System.out.println("==========Server Compoant==========");
		System.out.println("Message: "+ arg);
		notifyObservers(arg);
	}
	

}
